package com.itheima.servlet;

import com.itheima.domain.User;
import com.itheima.service.UserService;
import com.itheima.service.impl.UserServiceImpl;

import java.util.List;

public class DemoService {
    public static void main(String[] args) {
        UserService userService = new UserServiceImpl();
        List<User> list = userService.findAll();
        for (User user : list) {
            System.out.println(user);
        }
    }
}
